
import AbsMenu from '../absmenu.js'


class FontMenu extends AbsMenu.AbsMenu {
    constructor(map, item) {
        super(map, item);
    }

    act2Click() {
        console.log("FontMenu-----+" + this.menuSubItem);
        let modCmd = {propName:'',propval:null};
        let validCmd = false;
        switch (this.menuSubItem) {
            case 'bold':
            case 'italic':
            case 'underline':
            case 'strikeout':
                modCmd.propName = this.menuSubItem;
                validCmd = true;
                break;

            default:
                break;
        }

        if (validCmd){
            this.map.m_pEditINTF.modifyGraphStyle(modCmd);
        }
    }
}

export default { FontMenu }

